import request from "../utlis/Request"



export default{
    instertCollectio(name,count,sell,dialogImageUrl){
       return request({
        method: 'post',
        url: '/antique/insertCollectio',
        data:{
            name: name,
            count: count,
            sell: sell,
            imgsrc: dialogImageUrl,
          }
       })
    },
    updataCollectio(id,name,count,sell,dialogImageUrl){
        return request({
            method: 'post',
            url: '/antique/updataCollectio',
            data:{
                id: id,
                name: name,
                count: count,
                sell: sell,
                imgsrc: dialogImageUrl,
              }
           })
    },
    deleteCollection(id){
        return request({
            method: 'get',
            url: '/antique/deleteCollection',
            params: {
                id: id
            }
        })
    },

    queryCollection(name){
        return request({
            method: 'get',
            url: '/antique/queryCollection',
            params: {
                name: name
            }
        })
    },
}